package com.slaffka.action;

import com.slaffka.dao.UserDAO;
import com.slaffka.model.User;
import net.sf.jasperreports.engine.*;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import org.jboss.seam.security.Credentials;
import org.jboss.solder.logging.Logger;

import javax.ejb.Stateless;
import javax.enterprise.context.ConversationScoped;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import javax.inject.Inject;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.NonUniqueResultException;
import javax.persistence.PersistenceContext;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: slaffka
 * Date: 05.11.12
 * Time: 0:58
 * To change this template use File | Settings | File Templates.
 */
@Stateless
@Named(value = "userAction")
public class UserAction implements Serializable {


    @Inject
    UserDAO userDAO;

    @Inject
    private Logger log;

    @Inject
    private Credentials credentials;

    public List<User> getAllUsers(){
        return userDAO.getAllUsers();
    }






}
